			<h1><{$app.mod.name.value}></h1>
			<p class="lead"><{$smarty.const._MI_OPINION_LEAD}></p>
			<h2><{$smarty.const._MI_OPINION_ACCEPTABLE}></h2>
			<{if $app.polls.0==0}>
				<div class="noPolls"><{$smarty.const._MI_OPINION_NOT_EXISTS}></div>
			<{else}>
				<{foreach from=$app.polls.1 item=poll}>
				<a name="pollItem<{$poll.poll_id}>"></a>
				<form action="./index.php" method="post" id="poll<{$poll.poll_id}>" name="poll<{$poll.poll_id}>" class="pollVote">
					<div class="writeComment">
					<h3 class="hatena"><strong><{$poll.question}></strong></h3>
						<div class="pollDesc"><{$poll.description|nl2br}></div>
						<ul>
						<li><{$smarty.const._MI_OPINION_START_DATE}>&nbsp;:&nbsp;<{"Y-m-d H:i"|date:$poll.start_time}></li>
						<li><{$smarty.const._MI_OPINION_END_DATE}>&nbsp;:&nbsp;<{"Y-m-d H:i"|date:$poll.end_time}></li>
						<li><{$smarty.const._MI_OPINION_CURRENT_VOTES}>&nbsp;:&nbsp;<{$poll.votes}></li>
						</ul>
						<table class="outer2">
						<{foreach from=$poll.options item=o}>
						<tr>
						<th>
						<{if $poll.multiple}>
							<input type="checkbox" name="option[<{$o.option_num}>]" value="<{$o.option_num}>" id="pollOption<{$poll.poll_id}>-<{$o.option_num}>" <{if $poll.op_logs[$o.option_num]}>checked<{/if}>>&nbsp;
						<{else}>
							<input type="radio" name="option" value="<{$o.option_num}>" id="pollOption<{$poll.poll_id}>-<{$o.option_num}>" <{if $poll.op_logs[$o.option_num]}>checked<{/if}>>&nbsp;
						<{/if}>
						</th>
						<td><label for="pollOption<{$poll.poll_id}>-<{$o.option_num}>"><{$o.option_text}></label></td>
						</tr>
						<{/foreach}>
						</table>
						<p><{$smarty.const._MI_OPINION_COMMENT_PLEASE}></p>
						<textarea name="vote_comment" class="pollComment" id="pollComment<{$poll.poll_id}>" onFocus="Vote.block.onFocus(this,'<{$xoops_url}>')" onBlur="Vote.block.onBlur(this,'<{$xoops_url}>');"></textarea>
						<input type="hidden" name="action_opinion_vote" value="1">
						<input type="hidden" name="poll_id" value="<{$poll.poll_id}>">
						<input type="button" name="submitPoll" value="<{$smarty.const._MI_OPINION_VOTE}>" onclick="if(confirm('<{$smarty.const._MI_OPINION_CONFIRM}>')){document.poll<{$poll.poll_id}>.submit();}">&nbsp;
						<span id="show_log_<{$poll.poll_id}>" style="display:none;"><a href="result.php?poll_id=<{$poll.poll_id}>"><{$smarty.const._MI_OPINION_SHOW_RESULT}></a></span>
						<{if !$poll.allow_guest && !$xoops_isuser}>
						<script>
							Form.getElements('poll<{$poll.poll_id}>').each(function(ele){ele.disabled=true;}); // disabled
							$('pollComment<{$poll.poll_id}>').className = 'pollDisable';
						</script>
						<div><{$smarty.const._MI_OPINION_VOTE_AFTER_REGISTER}></div>
						<{/if}>	
						</div>
				</form>
				<{if $poll.has_log}>
				<script>
					$('pollComment<{$poll.poll_id}>').value = "<{$poll.comment|regex_replace:"/[\r\n]/":"\\n"}>";
					Form.getElements('poll<{$poll.poll_id}>').each(function(ele){ele.disabled=true;}); // disabled
					$('pollComment<{$poll.poll_id}>').className = 'pollVoted';
					Element.show("show_log_<{$poll.poll_id}>");
				</script>
				<{/if}>
				<{/foreach}>
			<{/if}>
			<h3><{$smarty.const._MI_OPINION_LOGS_LIST}></h3>
				
			<{if $app.past_polls.0}>
				<table class="outer3" id="result">
				<tr>
					<th><{$smarty.const._MI_OPINION_QUESTION}></th>
					<th><{$smarty.const._MI_OPINION_CURRENT_VOTES}></th>
					<th><{$smarty.const._MI_OPINION_START_DATE}></th>
					<th><{$smarty.const._MI_OPINION_END_DATE}></th>
					<th><{$smarty.const._MI_OPINION_RESULT}></th>
				</tr>
				<{foreach from=$app.past_polls.1 item=pp}>
				<tr>
				    <td><{$pp.question}></td>
				    <td class="num"><{$pp.voters}></td>
				    <td class="day"><{"Y-m-d H:i"|date:$pp.start_time}></td>
				    <td class="day"><{"Y-m-d H:i"|date:$pp.end_time}></td>
				    <td class="result"><a href="result.php?poll_id=<{$pp.poll_id}>"><{$smarty.const._MI_OPINION_RESULT}></a></td>
				  </tr>
				<{/foreach}>
				</table>
				
				<div class="pager"><{$app_ne.pager.all}></div>
			<{else}>
				<{$smarty.const._MI_OPINION_LOGS_NOT_EXISTS}>
			<{/if}>

